/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelLag;
import java.util.ArrayList;

/**
 *
 * @author Ronni
 */
public class Employee {
    private String cprNo;
    private String fName;
    private String lName;
    private String address;
    private String zipCode;
    private String city;
    private String email;
    private String phoneNo;
    private boolean active;
    private ArrayList<OrderArr> orders;

public Employee(String name)
{
    fName = name;
}
    

    public Employee(String cprNo, String fName, String lName, String address, String zipCode, String email, String phoneNo, boolean active) {
        this.cprNo = cprNo;
        this.fName = fName;
        this.lName = lName;
        this.address = address;
        this.zipCode = zipCode;
        this.email = email;
        this.phoneNo = phoneNo;
        this.active = active;
        
    }

    public Employee() {
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }
    

    public void addOrder(OrderArr order){
        orders.add(order);
    }
    public ArrayList<OrderArr> getOrders(){
        return orders;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCprNo() {
        return cprNo;
    }

    public void setCprNo(String cprNo) {
        this.cprNo = cprNo;
    }

    public String getfName() {
        return fName;
    }

    public void setfName(String fName) {
        this.fName = fName;
    }

    public String getlName() {
        return lName;
    }

    public void setlName(String lName) {
        this.lName = lName;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }
    
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString()
    {
        return fName + " " + lName;
    }
    
    
    
}
